package com.qifenqian.turbot.module.ui.setting

import android.content.Context
import android.content.Intent
import com.qifenqian.turbot.R
import com.qifenqian.turbot.base.BaseActivity
import com.qifenqian.turbot.config.Constant
import com.qifenqian.turbot.util.SpUtils
import kotlinx.android.synthetic.main.activity_safety_center.*

/**
 * @author H
 * @createDate 2018/12/29 8:52
 * @description 安全中心
 * @see
 * @since
 */
class SafetyCenterActivity : BaseActivity<Nothing, Nothing>() {

    companion object {
        fun startThis(context: Context) {
            val intent = Intent(context, SafetyCenterActivity::class.java)
            context.startActivity(intent)
        }
    }

    override fun bindLayoutId(): Int {
        return R.layout.activity_safety_center
    }

    override fun bindPresenter(): Nothing? {
        return null
    }

    override fun initial() {
        ly_safety_center_phone.setTextRight(SpUtils.getInstance().getString(Constant.SP_KEY_USER_CODE, Constant.SP_ACCOUNT))
        ly_safety_center_phone.setOnClickListener {
            ModifyPhoneActivity.startThis(this)
        }
        ly_safety_center_modify_password.setOnClickListener {
            ModifyPasswordActivity.startThis(this)
        }
    }

}
